package com.molichuxing.services.infrastructure.bean;

import com.molichuxing.framework.bean.RootBean;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author xuelin yi
 * @since 2019-08-12
 */
public class GoodsBean extends RootBean {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    private Integer id;

    /**
     * 商品编码
     */
    private String code;

    /**
     * 商品类型（1：专属，2：订阅）
     */
    private Integer type;

    /**
     * 车型id
     */
    private Integer vehicleStyleId;

    /**
     * 租车费
     */
    private BigDecimal rental;

    /**
     * 车辆履约保证金
     */
    private BigDecimal bond;

    /**
     * 是否禁售(0:否，1：是)，默认为0
     */
    private Boolean isForbidSale;

    /**
     * 是否删除（0：否，1：是），默认为0
     */
    private Boolean isDelete;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;

    /**
     * 更新时间
     */
    private LocalDateTime gmtModified;

    @Override
    public Integer getId() {
        return id;
    }

    @Override
    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getVehicleStyleId() {
        return vehicleStyleId;
    }

    public void setVehicleStyleId(Integer vehicleStyleId) {
        this.vehicleStyleId = vehicleStyleId;
    }

    public BigDecimal getRental() {
        return rental;
    }

    public void setRental(BigDecimal rental) {
        this.rental = rental;
    }

    public BigDecimal getBond() {
        return bond;
    }

    public void setBond(BigDecimal bond) {
        this.bond = bond;
    }

    public Boolean getForbidSale() {
        return isForbidSale;
    }

    public void setForbidSale(Boolean forbidSale) {
        isForbidSale = forbidSale;
    }

    public Boolean getDelete() {
        return isDelete;
    }

    public void setDelete(Boolean delete) {
        isDelete = delete;
    }

    @Override
    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    @Override
    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    @Override
    public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    @Override
    public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }
}
